package com.hertz.appr.pojo.db;

/**
 * Member entity. @author MyEclipse Persistence Tools
 */

public class Member implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -7245392265539630938L;
	private Integer id;
	private String uid;
	private String nick;
	private String provider;
	private Short flag;
	private Long createTime;

	public static final Short MEMBER_PERMIT = 2;
	public static final Short MEMBER_NORMAL = 0;
	public static final Short MEMBER_VIP = 1;

	// Constructors

	/** default constructor */
	public Member() {
	}

	/** full constructor */
	public Member(Integer id, String uid, String nick, String provider,
			Short flag, Long createTime) {
		this.id = id;
		this.uid = uid;
		this.nick = nick;
		this.provider = provider;
		this.flag = flag;
		this.createTime = createTime;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUid() {
		return this.uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public String getNick() {
		return this.nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getProvider() {
		return this.provider;
	}

	public void setProvider(String provider) {
		this.provider = provider;
	}

	public Short getFlag() {
		return this.flag;
	}

	public void setFlag(Short flag) {
		this.flag = flag;
	}

	public Long getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}
	@Override
	public String toString(){
		return "Member{" +
		" provider=" + String.format("%1$4S", provider) +
		", uid=" + String.format("%1$-20S", uid) +
        ", nick=" + String.format("%1$-20S", this.nick) +
        ", flag='" + flag + '\'' +
        '}';
	}
}